﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _78类和对象练习圆形类
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            // Circle circle = new Circle();
            // circle.r = 1;
            // Console.WriteLine(circle.GetArea());
        }

        private class Circle
        {
            public float r;
            public float GetPerimeter()
            {
                return r * 2 * 3.1415f;
            }

            public float GetArea()
            {
                return r * r * 3.1415f;
            }
        }
    }
}